package com.iflytek.edu.db.agent.utils;

import com.iflytek.edu.db.agent.config.ArgsConfig;
import com.iflytek.edu.db.core.parse.SqlAdapter;


/**
 * @author linkai
 * @date 2022/2/15
 */
public class SqlAdapterUtils {
    private static final SqlAdapter sqlAdapter;

    static {
        sqlAdapter = SqlAdapter.create(ArgsConfig.INSTANCE.getDbType());
    }

    public static String adapter(String sql) {
        return sqlAdapter.parse(sql);
    }

}
